package ramakrishnanmoreHealthView;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.custom.TableCursor;

public class table1 extends Composite
	{

		private final FormToolkit	toolkit	= new FormToolkit(Display
													.getCurrent());
		private Table table;

		/**
		 * Create the composite.
		 * @param parent
		 * @param style
		 */
		public table1(Composite parent, int style)
			{
				super(parent, style);
				toolkit.adapt(this);
				toolkit.paintBordersFor(this);
				{
					table = new Table(this, SWT.BORDER | SWT.FULL_SELECTION);
					table.setBounds(30, 22, 287, 114);
					toolkit.adapt(table);
					toolkit.paintBordersFor(table);
					table.setHeaderVisible(true);
					table.setLinesVisible(true);
					{
						TableColumn tableColumn = new TableColumn(table, SWT.NONE);
						tableColumn.setWidth(100);
						tableColumn.setText("New Column");
					}
					{
						TableColumn tableColumn = new TableColumn(table, SWT.NONE);
						tableColumn.setWidth(100);
						tableColumn.setText("New Column");
					}
					{
						TableCursor tableCursor = new TableCursor(table, SWT.NONE);
						toolkit.adapt(tableCursor);
						toolkit.paintBordersFor(tableCursor);
						
					}
				}

			}
	}
